/**
 * 
 */
package com.vivid.dynamics.oknow.dao;

import java.io.Serializable;

import org.springframework.stereotype.Repository;

import com.vivid.dynamics.oknow.model.Bookmark;

/**
 *	DAO methods involving the Bookmark.
 * @author jason
 * created at:: Aug 4, 2011 3:15:59 PM
 */
/*
 * Repository annotation states that this class will have 
 * the Exception Translation facility 
 */
@Repository
public interface IBookmarkDAO {
	/**
	 * method to retrieve the Bookmark based on the pId
	 * @param pId
	 * @return
	 * @author jason
	 * created at:: Aug 4, 2011  3:16:50 PM
	 */
	public Bookmark getBookmarkByKey(int pId);
	/**
	 * method to add a new bookmark to the datasource.
	 * @param pBookmark
	 * @return
	 * @author jason
	 * created at:: Aug 4, 2011  3:17:36 PM
	 */
	public Serializable newBookmark(final Bookmark pBookmark);
	/**
	 * method to update the given bookmark instance.
	 * @param pBookmark
	 * @author jason
	 * created at:: Aug 4, 2011  3:18:06 PM
	 */
	public void updateBookmark(final Bookmark pBookmark);
	/**
	 * method to delete the given bookmark instance.
	 * @param pBookmark
	 * @author jason
	 * created at:: Aug 4, 2011  3:18:41 PM
	 */
	public void deleteBookmark(final Bookmark pBookmark);
}
